//
//  Pen.m
//  OC02_作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Pen.h"

@implementation Pen
- (void)information{
    NSLog(@"type:%@, colour:%@", _type, _colour);
}

//- (void)setType:(NSString *)type {
//    _type = type;
//}
//- (NSString *)type {
//    return _type;
//}
//
//- (void)setColour:(NSString *)colour {
//    _colour = colour;
//}
//- (NSString *)colour {
//    return _colour;
//}

- (instancetype)initWithType:(NSString *)type
                      colour:(NSString *)colour {
    self = [super init];
    if (self) {
        _type = type;
        _colour = colour;
    }
    return self;
}

+ (instancetype)PenWithType:(NSString *)type
                     colour:(NSString *)colour {
    Pen *pen = [[Pen alloc] initWithType:type colour:colour];
    return pen;
}
@end
